<html>
<head><meta charset="utf-8"><title>What&#x27;s up with the sysroot crates? · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/What&#x27;s.20up.20with.20the.20sysroot.20crates.3F.html">What&#x27;s up with the sysroot crates?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="205482101"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/What%27s%20up%20with%20the%20sysroot%20crates%3F/near/205482101" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/What&#x27;s.20up.20with.20the.20sysroot.20crates.3F.html#205482101">(Jul 30 2020 at 14:04)</a>:</h4>
<p>We have:</p>
<div class="codehilite"><pre><span></span><code><span class="k">const</span><span class="w"> </span><span class="n">SYSROOT_CRATES</span>: <span class="kp">&amp;</span><span class="kt">str</span> <span class="o">=</span><span class="w"> </span><span class="s">&quot;</span>
<span class="s">std</span>
<span class="s">core</span>
<span class="s">alloc</span>
<span class="s">collections</span>
<span class="s">libc</span>
<span class="s">proc_macro</span>
<span class="s">rustc_unicode</span>
<span class="s">std_unicode</span>
<span class="s">test</span>
<span class="s">alloc_jemalloc</span>
<span class="s">alloc_system</span>
<span class="s">compiler_builtins</span>
<span class="s">getopts</span>
<span class="s">panic_unwind</span>
<span class="s">panic_abort</span>
<span class="s">rand</span>
<span class="s">term</span>
<span class="s">unwind</span>
<span class="s">build_helper</span>
<span class="s">rustc_asan</span>
<span class="s">rustc_lsan</span>
<span class="s">rustc_msan</span>
<span class="s">rustc_tsan</span>
<span class="s">syntax&quot;</span><span class="p">;</span><span class="w"></span>

<span class="k">const</span><span class="w"> </span><span class="n">STD_DEPS</span>: <span class="kp">&amp;</span><span class="kt">str</span> <span class="o">=</span><span class="w"> </span><span class="s">&quot;</span>
<span class="s">alloc</span>
<span class="s">alloc_jemalloc</span>
<span class="s">alloc_system</span>
<span class="s">core</span>
<span class="s">panic_abort</span>
<span class="s">rand</span>
<span class="s">compiler_builtins</span>
<span class="s">unwind</span>
<span class="s">rustc_asan</span>
<span class="s">rustc_lsan</span>
<span class="s">rustc_msan</span>
<span class="s">rustc_tsan</span>
<span class="s">build_helper&quot;</span><span class="p">;</span><span class="w"></span>
</code></pre></div>


<p>But in my sysroot I have:</p>
<div class="codehilite"><pre><span></span><code>alloc
core
panic_abort
panic_unwind
proc_macro
profiler_builtins
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std
stdarch
term
test
unwind
</code></pre></div>



<a name="205482162"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/What%27s%20up%20with%20the%20sysroot%20crates%3F/near/205482162" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/What&#x27;s.20up.20with.20the.20sysroot.20crates.3F.html#205482162">(Jul 30 2020 at 14:04)</a>:</h4>
<p>Do we need all of those?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>